<!--  -->
<template>
<div>
    <div class="ghost">
    <div class="eye"></div>
    <div class="eye two"></div>
    
    <div class="mouth">
        <div class="tonge"></div>
    </div>
    
    <div class="corner"></div>
    <div class="corner two"></div>
    <div class="corner three"></div>
    <div class="corner four"></div>
    
    <div class="over"></div>
    <div class="over two"></div>
    <div class="over three"></div>
    <div class="over four"></div>
    
    <div class="shadow"></div>
    </div>
    <div class="negation">
        <h2>404</h2>
        <p>页面不存在或已被删除！</p>
    </div>
    <router-link  tag="div" v-bind:to="{path:'/'}" class="home" >去首页</router-link>
</div>
</template>

<script>
export default {
data() {
return {

}
},
//生命周期 - 创建完成（访问当前this实例）
created() {

},
//生命周期 - 挂载完成（访问DOM元素）
mounted() {

}
}
</script>
<style scoped>
/* @import url(); 引入css类 */
body,
html {
  margin: 0px;
  background-color: #f8f8f8;
  overflow: hidden;
}
.negation{
    position: absolute;
    width: 100%;
    height: 50%;
    display: flex;
    text-align: center;
    flex-direction: column;
    justify-content: center;
}
.negation h2{
    font-size: 70px;
    color: #9e9c9c;
}
.negation p{
    margin-top: 10px;
    letter-spacing: 2.2px;
    color: #968f8f;
}
.home{
    width: 126px;
    height: 31px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20%;
    z-index: 999;
    border-radius: 13px;
    text-align: center;
    line-height: 34px;
    font-size: 16px;
    background: rgb(51, 131, 234);
    color: white;
    box-shadow: 0 3px 2px 1px #333;
}

.ghost {
  width: 125px;
  height: 200px;
  background-color: #f8f8f8;
  border: 3px solid #979797;
  position: absolute;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 150px 150px 7px 7px;
  animation: ghost 1.5s ease-in-out alternate infinite;
  z-index: 1; 
}

.corner {
  width: 21px; height: 21px;
  border-radius: 5px; 
  background-color: #f8f8f8;
  border: 3px solid #979797;
  position: absolute;
  margin-top: 188px; 
  transform: rotate(45deg); 
  z-index: -1; 
}
.corner.two {
  margin-left: 33px; 
}
.corner.three {
  margin-left: 66px; 
}
.corner.four {
  margin-left: 98px; 
}

.over {
  width: 27px; height: 27px;
  border-radius: 3px; 
  background-color: #f8f8f8;
  position: absolute;
  margin-top: 188px; 
  transform: rotate(45deg) translateX(3px) translateY(3px); 
}
.over.two {
  margin-left: 33px; 
}
.over.three {
  margin-left: 66px; 
}
.over.four {
  margin-left: 98px; 
}

.eye {
  width: 10px; height: 10px;
  border-radius: 10px; 
  background-color: #979797; 
  position: absolute; margin: 50px auto; 
  left: 0;right: 0;
  transform: translateX(-25px); 
}
.eye.two {
  transform: translateX(25px); 
}

.mouth {
  width: 40px; height: 4px;
  border-radius: 10px; 
  background-color: #979797; 
  position: absolute; margin: 75px auto; 
  left: 0;right: 0;
}
.tonge {
  width: 4px; height: 10px;
  border-radius: 0px 0px 50px 50px; 
  background-color: #c39797; 
  position: absolute; margin: 2px auto; 
  left: 0;right: 0;
  transform: translateX(-6px); 
  border-left: 5px solid #dfb1b1; 
  border-right: 5px solid #dfb1b1; 
  border-bottom: 5px solid #dfb1b1; 
}

.shadow {
  width: 120px;
  height: 30px;
  border-radius: 100%;
  background-color: #d8d8d8;
  position: absolute;
  margin: 230px auto;
  left: 0;
  right: 0;
  animation: shadow 1.5s ease-in-out alternate infinite;
}

@keyframes shadow {
  0% {
    transform: scale(1) translateY(0px);
  }
  100% {
    transform: scale(0.8) translateY(75px);
  }
}
@keyframes ghost {
  0% {
    transform: scale(1) translateY(0px)
  }
  100% {
    transform: scale(1) translateY(-40px)
  }
}

.edge {
  width: 0;height: 0;
  border: 80px solid transparent; 
  border-right: 80px solid dodgerblue; 
  border-bottom: 80px solid dodgerblue; 
  position: absolute;
  bottom: 0px; right: 0px; 
}
a {
  text-decoration: none; 
}
h3 {
  transform: rotate(-45deg) translateY(-30px); 
  color: white; 
  width: 100px;
  font-family: 'Source Sans Pro', sans-serif;
}

</style>